package com.example.sql.manager.ftl.directive;

import freemarker.core.Environment;
import freemarker.template.*;

import java.io.IOException;
import java.util.Map;

public class ArrAddDirective implements TemplateDirectiveModel {
    @Override
    public void execute(Environment environment, @SuppressWarnings("rawtypes") Map map, TemplateModel[] templateModels,
                        TemplateDirectiveBody templateDirectiveBody) throws TemplateException, IOException {
        SimpleSequence arr = (SimpleSequence) map.get("arr");
        arr.add(map.get("elm"));
    }
}
